package com.yima.baseproj.module.app.resource;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yima.baseproj.module.app.resource.model.AppResourceAddParamModel;
import com.yima.baseproj.module.config.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import lombok.extern.slf4j.Slf4j;

import com.yima.baseproj.module.app.resource.model.*;

@Data
@TableName("app_resource")
@Slf4j
public class AppResourceEntity extends BaseEntity {

    @ApiModelProperty(value = "标识")
    @TableField(value = "type")
    private String type;

    @ApiModelProperty(value = "文件")
    @TableField(value = "url")
    private String url;

    @ApiModelProperty(value = "备注")
    @TableField(value = "remark")
    private String remark;

    public void setData(AppResourceAddParamModel paramModel) {
        this.type = paramModel.getType();
        this.url = paramModel.getUrl();
        this.remark = paramModel.getRemark();
    }
}